package com.dgw.springbootsolr.entity;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.stereotype.Component;

/**
 * @program: springboot-solr
 * @description:
 * @author: Mr.Dai
 * @create: 2020-02-26 22:04
 **/
@Component
public class Admin {
    @Field
    private Long id;
    @Field
    private String name;
    @Field
    private Integer age;

    public Admin(Long id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public Admin() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
